<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <meta charset="utf-8">

    <title><?php echo $pagetitle ?></title>

    <link href="<?php echo $this->config->item('css_url'); ?>\bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo $this->config->item('css_url'); ?>\starter-template.css" rel="stylesheet">

    <style>

         .loginclass
         {
             position: fixed;
             top: 1.75%;
             right: 1%;
         }

        .freerooms
        {
            position:fixed;
            top: 24%;
            left: 1%;
            color:#ffffff;
        }

        #image
        {
            background-image: url("<?php echo $this->config->item('img_url') . 'background.png' ?>");

            position:fixed;
            top:5%;
            left:0%;
            width: 18%;
            height: 95%;
        }

    </style>

</head>

<body id="main_body">

<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="<?php echo site_url('index.php/welcome/index') ?>">neLo</a>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li <?php if($window == 'home') echo 'class="active"' ?>><a href="<?php echo site_url('index.php/welcome/index') ?>">Home</a></li>
                <li <?php if($window == 'search') echo 'class="active"' ?>><a href="<?php echo site_url('index.php/welcome/load_search_page') ?>">Search</a></li>
                <li <?php if($window == 'contact') echo 'class="active"' ?>><a href="<?php echo site_url('index.php/welcome/load_contact_page') ?>">Contact</a></li>
                <li <?php if($window == 'rezervation') echo 'class="active"' ?>><a href="<?php echo site_url('index.php/welcome/load_rezervations_page') ?>">Rezervations</a></li>
                <li>
                    <div id="logginsection" class="loginclass">
                        <input id="usernameLogin" type="text" name="username" placeholder="username"/>
                        <input id="passwordLogin" type="password" name="password" placeholder="password"/>
                        <input type="button" onclick="login()" value="Login">
                        <input type="button" onclick="load_reg_page()" value="Register">
                    </div>

                    <div id="logoutsection" hidden="hidden" class="loginclass">
                        <label id="logname" style="color: #ffffff"></label>
                        <label value="   "></label>
                        <input type="button" onclick="logout()" value="Logout">
                    </div>
                </li>

            </ul>
        </div><!--/.nav-collapse -->
    </div>
</div>

<div id="image">

</div>

<div id="room_status" class="freerooms"> </div>